require(['jquery'], function ($) {
    if ($('[data-toggle="address"]', document)) {
        $(document).on('click','[data-toggle="address"]',function (e) {
            var index = cmsOpen('/addons/address/index/index','位置选取');
            var that = this;
            $("#layui-layer" + index).data("callback",function (obj) {
                $('#'+$(that).data('point')).val(JSON.stringify(obj.lnglat));
                $('#'+$(that).data('address')).val(obj.address)
            });
        })
    }
})